package com.daekwang.service;

import org.mybatis.spring.SqlSessionTemplate;

import com.daekwang.abstraction.Write;
import com.daekwang.domain.WriteVO;

public class WriteService implements Write{

	private SqlSessionTemplate template;

	public void setTemplate(SqlSessionTemplate template) {
		this.template = template;
	}

	@Override
	public int writeContent(WriteVO vo) {
		return template.insert("com.daekwang.sqlMap.write.writeContent", vo);
	}

}
